<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns the current result's filename</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongogridfscursor.getnext.html">MongoGridFSCursor::getNext</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongo.miscellaneous.html">Miscellaneous</a></div>
 <div class="up"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongogridfscursor.key" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoGridFSCursor::key</h1>
  <p class="verinfo">(PECL mongo &gt;=0.9.0)</p><p class="refpurpose"><span class="refname">MongoGridFSCursor::key</span> &mdash; <span class="dc-title">Returns the current result&#039;s filename</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongogridfscursor.key-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>MongoGridFSCursor::key</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongogridfscursor.key-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongogridfscursor.key-returnvalues">
  <h3 class="title">返回值</h3>  
  <p class="para">
   The current result&#039;s _id as a string.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-mongogridfscursor.key-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>1.3.0</td>
       <td>
        The document&#039;s <em>_id</em> is returned as a string value,
        since the key should be unique. Pre-1.3.0, <em>filename</em>
        was returned.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongogridfscursor.getnext.html">MongoGridFSCursor::getNext</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongo.miscellaneous.html">Miscellaneous</a></div>
 <div class="up"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
